#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
    char ch[1050][100];
    int i = 1;
    while (scanf("%s", ch[i]) != "\n")
    {
        i++;
    }
    int left = 1, right = i;
    while (left < right)
    {
        strcpy(ch[0], ch[right]);
        strcpy(ch[right], ch[left]);
        strcpy(ch[left], ch[0]);
        left++;
        right--;
    }

    for (int j = 2; j <= i; j++)
    {
        if (j == 1)
            printf("%s", ch[j]);
        else
            printf(" %s", ch[j]);
    }
    return 0;
}